using Volo.Abp.Modularity;
using Volo.Abp;
using Autofac.Extensions.DependencyInjection;
using Autofac.Core;
using Autofac;
using Microsoft.AspNetCore.Mvc;
using BingYing.SAAS.SystemModel.Application.Manager;
using Volo.Abp.Autofac;
namespace BingYing.SAAS.SystemModel.WebApi
{
    public class Program
    {
        public static async Task Main(string[] args)
        {
            var builder = WebApplication.CreateBuilder(args);
            builder.Host.UseAutofac();
            await builder.AddApplicationAsync<SystemModelWebApiModule>();

            var app = builder.Build();

            // Configure the HTTP request pipeline.

            await app.InitializeApplicationAsync();
            app.MapControllers();
            await app.RunAsync();
        }
    }
}
